<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:useBean id="now" class="java.util.Date" scope="page"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="<c:url value="/resources/js/jquery-3.4.1.min.js" />"></script>
<link href="<c:url value="/resources/bootstrap/bootstrap-4.4.1-dist/css/bootstrap.min.css" />" rel="stylesheet">
<script type="text/javascript" src="<c:url value="/resources/bootstrap/bootstrap-4.4.1-dist/js/bootstrap.min.js" />"></script>
<link href="<c:url value="/resources/bootstrap/bootstrap-4.4.1-dist/css/bootstrap.css" />" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"  >
<title>项目维护</title>
</head>
<body>
    <div id="content">
		<nav aria-label="breadcrumb">
		  <ol class="breadcrumb">
		    <li class="breadcrumb-item"><a href="#">Home</a></li>
		    <li class="breadcrumb-item active" aria-current="page">项目维护</li>
		  </ol>
		</nav>
		<div>
	
		<form action="<c:url value="/project/submit.do" />" method="post">
		          <div class="container-fluid">
		            <div class="row">
		                  <div class="col-12" style="text-align:right;margin-bottom:5px">
		                      <button type="submit" class="btn btn-primary">保存</button>
		                      <button type="button" class="btn btn-primary" onClick="history.back()">退出</button>
		                  </div>
		            </div>
		          </div>
				  <div class="form-row">
				    <div class="form-group col-md-6">
				      <label for="projectName">项目名称：</label>
				      <input type="text" class="form-control" required name="projectName" id="projectName">
				    </div>
				    <div class="form-group col-md-6">
				      <label for="projectCode">项目编码</label>
				      <input type="text" name="projectCode"  placeholder="系统自动生成" class="form-control" id="projectCode" readOnly>
				    </div>
				  </div>
				<div class="form-row">
					<div class="form-group col-md-6">
					      <label for="businessUnit">业务所属单位：</label>
					      <select id="businessUnit" required name="businessUnit" class="form-control">
					          <option value=""></option>
					          <option value="建筑北方">建筑北方</option>
					          <option value="建筑华东">建筑华东</option>
					          <option value="建筑西南">建筑西南</option>
					          <option value="建筑南方">建筑南方</option>
					          <option value="装饰北方">装饰北方</option>
					          <option value="装饰华东">装饰华东</option>
					          <option value="装饰西南">装饰西南</option>
					          <option value="装饰南方">装饰南方</option>
					          <option value="机电业务">机电业务</option>
					          <option value="幕墙业务">幕墙业务</option>
					      </select>
					</div>
			  </div>	
			  <div class="form-row">
				  <div class="form-group col-md-6">
				    <label for="created">创建时间：</label>
				    <input type="text" class="form-control" name="created" id="created" value="<fmt:formatDate value="${now}" pattern="yyyy-MM-dd hh:mm:ss" />" readOnly>
				  </div>
				  <div class="form-group col-md-6">
				    <label for="updated">修改时间：</label>
				    <input type="text" class="form-control" name="updated" id="updated" readOnly>
				  </div>
			  </div>

		</form>
		</div>
    </div>
</body>
<script type="text/javascript">
  function changeFrameHeight(){
    var ifm= parent.document.getElementById("projectMaintain"); 

    if(ifm){
        ifm.height= ifm.contentWindow.document.body.scrollHeight;
    }
   
}
window.onload=function(){  
    changeFrameHeight();  

} 
window.onresize=function(){  
     changeFrameHeight();  

}  
</script>
</html>